package cn.edu.dlmu.cogo.framework.log;

import cn.edu.dlmu.cogo.framework.annotation.Priority;
import cn.edu.dlmu.cogo.framework.config.JavaConfig;
import cn.edu.dlmu.cogo.framework.config.LogConfig;
import cn.edu.dlmu.cogo.framework.context.ApplicationContext;
import cn.edu.dlmu.cogo.framework.context.ApplicationContextAware;
import cn.edu.dlmu.cogo.framework.context.Level;

/**
 * @author yixi
 */
@Priority(Level.Middle)
public class CogoLogAware implements ApplicationContextAware {

    @Override
    public void setApplicationContext(ApplicationContext applicationContext) {
        JavaConfig.setConfig(new LogConfig());
    }
}
